package com.neuedu.spring.controller;

import com.neuedu.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

/**
 * 项目：spring-java4
 * 创建时间：  2022-03-21   8:43
 * 作者 :jshand
 * 描述 :
 */
//@Component
@Controller
public class UserController {
    @Autowired
    private UserService userService;

    public void query(){
        System.out.println("调用Controller方法");
        userService.queryById();
    }
}
